/*
 * @Author: szx
 * @Date: 2021-10-27 13:30:21
 * @LastEditTime: 2021-10-27 13:32:00
 * @Description:
 * @FilePath: \leetcode\217\217.go
 */
package main

func containsDuplicate(nums []int) bool {
	set := map[int]struct{}{}
	for _, v := range nums {
		if _, has := set[v]; has {
			return true
		}
		set[v] = struct{}{}
	}
	return false
}

func main() {

}
